/*
* PulverizingDao.java
* Created on  202015/7/20 13:48
* 版本       修改时间          作者      修改内容
* V1.0.1    202015/7/20       panzhuowen    初始版本
*
*/

package com.infitecs.eyas.mill.dao;

import com.infitecs.eyas.mill.model.PulverizingBase;
import com.infitecs.eyas.mill.model.PulverizingSection;
import com.infitecs.eyas.mill.model.PulverizingTao;
import com.infitecs.krill.mybatis.annotation.mybatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类的描述信息
 *
 * @author panzhuowen
 * @version 1.0.1
 */
@mybatisRepository
public interface PulverizingDao {

    void addPulverizingBase(PulverizingBase pulverizingBase);

    void addPulverizingTao(PulverizingTao pulverizingTao);

    void addPulverizingSection(PulverizingSection pulverizingSection);

    List<PulverizingBase> getPulverizingBaseListByCaseId(@Param("caseId") int caseId);

    List<PulverizingTao> getPulverizingTaoListByBaseId(@Param("baseId") int baseId);

    List<PulverizingSection> getPulverizingListByTaoId(@Param("taoId") int taoId);

    void saveBaseVo(PulverizingBase pulverizingBase);

    void updateBaseTitle(PulverizingBase pulverizingBase);

    void updateTaoTitle(PulverizingTao pulverizingTao);

    void updateChildTitle(PulverizingSection pulverizingSection);

    void delSec(@Param("id") int id);

    //计算和变量值更新部分
    void updateBaseParam(PulverizingBase pulverizingBase);

    void updateSection(PulverizingSection pulverizingSection);
}
